import { gql } from "@apollo/client";

export interface TimetableRecordType {
  id: string;
  subscribeTime: Date;
  studentId: string;
  cardRecordId: string;
  timetableId: string;
  courseId: string;
  orgId: string;
}

export const getTimetableRecords_service = gql`
  query gettimetableRecords($page: PageInput!, $timetableId: String) {
    gettimetableRecords(page: $page, timeTableId: $timetableId) {
      message
      code
      page {
        total
        pageNum
        pageSize
      }
      data {
        id
        subscribeTime
        studentId
        cardRecordId
        timetableId
        courseId
        orgId
      }
    }
  }
`;

export const getTimetableRecords_simple_service = gql`
  query getTimetableRecordsPc($page: PageInput!, $timetableId: String!) {
    getTimetableRecordsPc(page: $page, timetableId: $timetableId) {
      code
      data {
        id
        studentId
        timetableId
      }
    }
  }
`;
